package com.aspose.cells.a.d;

public class zfx {
   public String a;
   public int b;
   public int c;
   public int d;

   public zfx(zu var1) throws Exception {
      this.a = new String(var1.b(4));
      this.b = var1.b();
      this.c = var1.b();
      this.d = var1.b();
   }

   public void a(zv var1) throws Exception {
      for(int var2 = 0; var2 < this.a.length(); ++var2) {
         var1.a((byte)this.a.charAt(var2));
      }

      var1.a(this.b);
      var1.a(this.c);
      var1.a(this.d);
   }

   public static int a(byte[] var0, int var1, int var2) {
      int var3 = 0;
      int var8 = var1;
      int var9 = var2 / 4;

      int var5;
      int var6;
      int var7;
      int var10;
      for(var10 = 0; var10 < var9; ++var10) {
         var7 = var0[var8++] & 255;
         var6 = var0[var8++] & 255;
         var5 = var0[var8++] & 255;
         int var4 = var0[var8++] & 255;
         int var11 = var4 | var5 << 8 | var6 << 16 | var7 << 24;
         var3 += var11;
      }

      var7 = var8 < var2 ? var0[var8++] & 255 : 0;
      var6 = var8 < var2 ? var0[var8++] & 255 : 0;
      var5 = var8 < var2 ? var0[var8++] & 255 : 0;
      byte var12 = 0;
      var10 = var12 | var5 << 8 | var6 << 16 | var7 << 24;
      var3 += var10;
      return var3;
   }
}
